package cn.jiyun.feign;

import cn.jiyun.entity.day05.CompentDto;
import cn.jiyun.utils.ResultResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Title: CompentFeign
 * @Author 王鸽
 * @Date 2023/8/23 20:20
 */
@FeignClient(name = "p11-day12-compent")
public interface CompentFeign {
    @RequestMapping("/compent/findCompentNum")
    public ResultResponse findCompentNum();
    @RequestMapping("/compent/findAll2")
    public ResultResponse findAll2(@RequestBody CompentDto compentDto);
    @RequestMapping("/compent/findById")
    public ResultResponse findById(@RequestParam("id") Integer id);
    @RequestMapping("/compent/baoming")
    public ResultResponse baoming(@RequestParam("id") Integer id,@RequestParam("tid") Integer tid);
    @RequestMapping("/compent/findConpentAll")
    public ResultResponse findConpentAll(@RequestBody CompentDto compentDto);
}
